#include <iostream>

using namespace std;

//比较运算符:用于表达式的比较，并返回一个真值或假值
int main() {
    int num1 = 10;
    int num2 = 20;
    cout << (num1 == num2) << endl;//等于比较==
    cout << (num1 != num2) << endl;//不等于比较!=
    cout << (num1 > num2) << endl;//大于比较>
    cout << (num1 < num2) << endl;//小于比较<
    cout << (num1 >= num2) << endl;//大于等于比较>=
    cout << (num1 <= num2) << endl;//小于等于比较<=
    return 0;
}

